package org.liang.exception;

public enum ResponseCode {

    RESPONSE_CODE_200(200,"操作成功!"),
    RESPONSE_CODE_400(400,"参数错误!"),
    RESPONSE_CODE_400001(400001,"两次密码不一致,请检查后重新提交!"),
    RESPONSE_CODE_400002(400002,"店铺已存在,请检查后重新提交!"),
    RESPONSE_CODE_400003(400003,"该店铺管理员信息重复,请检查后重新提交!"),
    RESPONSE_CODE_400004(400004,"该店铺名字违规,请检查后重新提交!"),
    RESPONSE_CODE_400005(400005,"该手机号已经被注册过，请前往登录!"),
    RESPONSE_CODE_400006(400006,"该图形验证码已过期!"),
    RESPONSE_CODE_400007(400007,"该图形验证码不一致,请检查后重新提交!"),
    RESPONSE_CODE_400008(400008,"发送过于频繁请稍后再试!"),
    RESPONSE_CODE_400009(400009,"该短信验证码错误，请重新输入"),
    RESPONSE_CODE_400010(400010,"用户名或密码错误！"),
    RESPONSE_CODE_400011(400011,"未登录！"),
    RESPONSE_CODE_500(500,"网络异常!请稍后重试!");

    //错误码
    private Integer code;
    //错误信息
    private String message;

    ResponseCode(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
